package cn.gzsf.springboot05.mapper;

import cn.gzsf.springboot05.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Insert("insert into user (username,password,nick) values (#{username},#{password},#{nick})")
    void insert(User user);
    @Select("select password from user where username=#{username}")
    User selectByUsername(String username);

}
